package com.own.business.system.menu.controller.user.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import com.own.constant.ConstantBeanSuffix;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * UserSystemMenuApiDocConfiguration
 *
 * @author chenxueli
 * @date 2024-03-30 13:22:38
 */
@SpringBootConfiguration
public class UserSystemMenuApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi userSystemMenuApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "系统菜单管理" + ConstantBeanSuffix.USER_CLIENT,
                this.getClass().getPackageName(),
                "com.own.business.system.menu.controller.user"
        );
    }

}
